package newcharacter;

import java.util.function.Function;

public class FunctionRefTest {
    public static void main(String[] args) {
        Function<String,Integer> function = s->s.length();
        System.out.println(function.apply("hello"));
        Function<String,Integer> function1 =  String:: length;
        System.out.println(function1.apply("123123"));
    }
}
